package admin.view;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import admin.drink.view.DrinkView;
import admin.employee.view.EmployeeView;

public class AdminView extends JFrame {

	public AdminView() {
		initComponents();
	}
	
	private void initComponents(){
		setSize(1000, 400); 
		setDefaultCloseOperation(HIDE_ON_CLOSE);
		setLocationRelativeTo(null);//set frame location to center on screen
		
		JTabbedPane tabbedPane = new JTabbedPane();
		
		EmployeeView employeePanel = new EmployeeView(); 
		DrinkView drinkView = new DrinkView();
		
		tabbedPane.addTab("Employee View", employeePanel);
		tabbedPane.addTab("Drink View", drinkView);
		getContentPane().add(tabbedPane, BorderLayout.CENTER);
		//add(employeePanel);
		//setLayout(new GridLayout());
		
	}

}
